<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<h:panelGroup id="panelGroup_settings_menu" layout="block" styleClass="panelGroup_settings_menu">
		<h:form id="form_menu">
			<p:menubar id="menu_settings" >

				<p:submenu id="submenu_my_settings" label="#{msg.label_settings_my_settings}" >

					<p:menuitem id="menuitem_settings_profile" value="#{msg.label_settings_profile}"  update=":panelgroup_settings_center"  >
						<f:setPropertyActionListener target="#{mainBean.settingsPage}" value="profile.xhtml"/>
					</p:menuitem>
					<p:menuitem id="menuitem_settings_changepassword" value="#{msg.label_settings_changepassword}" update=":panelgroup_settings_center"/>
					
				</p:submenu>
				
				<p:submenu id="submenu_plugins" label="#{msg.label_settings_plugins}" >
				
					<p:menuitem id="menuitem_settings_plugins_facebook" value="#{msg.label_settings_plugin_facebook}" update=":panelgroup_settings_center" />
					<p:menuitem id="menuitem_settings_plugins_twitter" value="#{msg.label_settings_plugin_twitter}" update=":panelgroup_settings_center"/>
					<p:menuitem id="menuitem_settings_plugins_linkedin" value="#{msg.label_settings_plugin_linkedin}" update=":panelgroup_settings_center"/>
					
				</p:submenu>
				
				<p:submenu id="submenu_admin" label="#{msg.label_settings_admin}" rendered="#{permissionBean.admin}">
					<p:menuitem id="menuitem_settings_admin_users" value="#{msg.label_settings_admin_users}" action="#{userBean.prepareList}" update=":panelgroup_settings_center" >
						<f:setPropertyActionListener target="#{mainBean.settingsPage}" value="users.xhtml"/>
					</p:menuitem>
					<p:menuitem id="menuitem_settings_admin_newsletter" value="#{msg.label_settings_admin_newsletter}" action="#{newsletterBean.prepareList}" 
						update=":panelgroup_settings_center" >
						<f:setPropertyActionListener target="#{mainBean.settingsPage}" value="newsletters.xhtml"/>
					</p:menuitem>
				</p:submenu>
				

			</p:menubar>
		</h:form>
	</h:panelGroup>
</html>